<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"
           %><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"
           %><%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"
           %><%@ taglib tagdir="/WEB-INF/tags" prefix="cohesion"
           %><%@ page contentType="text/html;charset=ISO-8859-1"
           %><html:html>
    <head>
        <title><bean:message key="VFactura.title"/></title>
        <html:base/>

        <%@include file="../header/include.jsp" %>

    </head>
    <body>
        <div id="header"  class="ui-widget-header ui-corner-all">
            <h1><bean:message key="all.title"/></h1>
            <div id="menu">
                <ul id="nav">
                </ul>
            </div>
        </div>
        <div id="body_wrapper">
            <div id="body">
                <div id="split">
                    <div class="top"></div>
                    <div id="left">
                        <div id="content">
                            <div class="ui-widget-header ui-corner-top "> <h1> Factura </h1></div>
                            <script type="text/javascript">
                                $(function() {
                                    $("#tabs").tabs();
                                });
                            </script>
                            <div  class="ui-widget-content ui-widget">
                                <div id="tabs">
                                    <ul>
                                        <li><a href="#tabs-1">Datos Generales</a></li>
                                        <li><a href="#tabs-2">Productos</a></li>

                                    </ul>
                                    <div id="tabs-1">
                                        <div class="show ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">

                                            <table border="1">
                                                <tr>
                                                    <th class="atributos ui-state-default ui-th-column">
                                                        Nombre
                                                    </th>
                                                    <th>
                                                        ${factura.nombre}
                                                    </th class="valor sf_admin_row ui-widget-content">
                                                </tr>
                                                <tr>
                                                    <th class="atributos ui-state-default ui-th-column">
                                                        Rif o Cedula
                                                    </th>
                                                    <th class="valor sf_admin_row ui-widget-content">
                                                        ${factura.rifCedula}
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th class="atributos ui-state-default ui-th-column">
                                                        Razon Social
                                                    </th>
                                                    <th class="valor sf_admin_row ui-widget-content">
                                                        ${factura.razonSocial}
                                                    </th>
                                                </tr>
                                                <tr>
                                                    <th class="atributos ui-state-default ui-th-column">
                                                        Telefono
                                                    </th>
                                                    <th class="valor sf_admin_row ui-widget-content">
                                                        ${factura.telefono}
                                                    </th>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                    <div id="tabs-2">
                                        <div class="show ui-grid-table ui-widget ui-corner-all ui-helper-reset ui-helper-clearfix">
                                            <table border="1">
                                                <thead>
                                                    <tr>
                                                        <th class="atributos ui-state-default ui-th-column">Nombre</th>
                                                        <th class="atributos ui-state-default ui-th-column">Cantidad</th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    <% request.setAttribute("_vacio", new Object[0]);%>
                                                    <logic:iterate id="producto" collection="${empty productos ? _vacio : productos}">
                                                        <tr>
                                                            <td class="valor sf_admin_row ui-widget-content">
                                                                ${producto.idCatalogo.nombre}
                                                            </td>

                                                            <td class="valor sf_admin_row ui-widget-content"> ${producto.cantidad}</td>

                                                        </tr>
                                                    </logic:iterate>
                                                </tbody>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                    <div id="right">


                        <%@include file="../administrador/VMenuAdmin.jsp" %>
                    </div>
                    <div class="clearer ui-helper-clearfix"></div>
                    <div class="bottom"></div>
                </div>
                <div class="clearer"></div>
            </div>
            <div class="clearer"></div>
        </div>
        <div id="end_body"></div>
<div id="footer"> <%@include file="/footer/include.jsp" %> </div>
    </body>

</html:html>